package com.sidianzhong.sdz.service;

import com.sidianzhong.sdz.model.*;
import com.sidianzhong.sdz.utils.PageInfo;
import com.alibaba.fastjson.JSONObject;
import java.util.List;

/**
* Created by hxgqh on 2016/1/7.
*/
public interface UserChangeService {

    UserChange create(UserChange item);

    int delete(Integer id);

    int update(UserChange item);

    UserChange get(Integer id);

    PageInfo<UserChange> getListWithPaging(Integer pageNum, Integer pageSize,
                                           String sortItem, String sortOrder, UserChange item);

    List<UserChange> getList(Integer pageNum, Integer pageSize,
                             String sortItem, String sortOrder, UserChange item);

    PageInfo<JSONObject> getListWithObject(Integer pageNum, Integer pageSize,
                                           String sortItem, String sortOrder, UserChange item);

    Double getAmount(Integer userId,Integer coinId,Integer status);

    //交易hash是否在表中进行存在
    boolean isHashExist(String hash);

    Double getDayAmount(Integer userId,Integer coinId);
}
